Skip to content

Usage card fixes - #921

Merged
allanlasser merged 4 commits into
masterfrom
usage-fixes
Nov 20, 2026
Merged

allanlasser merged 4 commits into
masterfrom
usage-fixes

Conversation

@dnass

@dnass dnass commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Two fixes for #916:

  • Use capfirst instead of title for resource names. Otherwise we end up with "Ai Credits."
  • Hide rows for resources if the user doesn't have any credits, and hide services if there are no applicable resources.

@allanlasser
allanlasser temporarily deployed to squarelet-pi-usage-fixe-0xa4ge November 19, 2026 22:29 Inactive
@dnass
dnass requested a review from allanlasser November 19, 2026 22:35
@allanlasser

allanlasser commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

You caught the things I picked up on. A few more:

  • I like to use the "I with bars" variant, since it results in an "AI" that doesn't look like "Al". As somebody nicknamed Al, I'm sensitive to this 😆 Use font-feature-settings: "ss04" on;.
  • AI credits are always in the 10s of thousands, so 100+ isn't as meaningful. I think let's start by showing the true value, then truncate if it looks weird in practice. We could use a humanization to show like "10k" instead of a specific number…but that would mean adding a new library (I think).

@allanlasser
allanlasser temporarily deployed to squarelet-pi-usage-fixe-0xa4ge November 20, 2026 00:44 Inactive
@dnass

dnass commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Just pushed both of those changes.

@allanlasser
allanlasser merged commit ced0131 into master Nov 20, 2026
8 checks passed

This branch was previously deployed

1 inactive deployment
squarelet-pi-usage-fixe-0xa4ge — c0dd83b5 Deployed Nov 20, 2026 by allanlasser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants